
#
# Copyright (C) 2024 by yanl1229
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#from building import *

import os

Import('env')

# The set of source files associated with this SConscript file.
src = Split('''
    CMSIS/Device/ST/STM32F4xx/Source/system_stm32f4xx.c
    src/stm32f4xx_hal.c
    src/stm32f4xx_hal_adc.c
    src/stm32f4xx_hal_dac.c
    src/stm32f4xx_hal_dac_ex.c
    src/stm32f4xx_hal_adc_ex.c
    src/stm32f4xx_hal_can.c
    src/stm32f4xx_hal_cortex.c
    src/stm32f4xx_hal_crc.c
    src/stm32f4xx_hal_cryp.c
    src/stm32f4xx_hal_dcmi.c
    src/stm32f4xx_hal_dma.c
    src/stm32f4xx_hal_dma_ex.c
    src/stm32f4xx_hal_dma2d.c
    src/stm32f4xx_hal_eth.c
    src/stm32f4xx_hal_exti.c
    src/stm32f4xx_hal_flash.c
    src/stm32f4xx_hal_flash_ex.c
    src/stm32f4xx_hal_nand.c
    src/stm32f4xx_ll_fmc.c
    src/stm32f4xx_hal_nor.c
    src/stm32f4xx_hal_pccard.c
    src/stm32f4xx_hal_pwr_ex.c
    src/stm32f4xx_hal_sram.c
    src/stm32f4xx_hal_hash.c
    src/stm32f4xx_hal_gpio.c
    src/stm32f4xx_hal_i2c.c
    src/stm32f4xx_hal_i2s.c
    src/stm32f4xx_hal_i2s_ex.c
    src/stm32f4xx_hal_ltdc.c
    src/stm32f4xx_hal_rcc.c
    src/stm32f4xx_hal_rcc_ex.c
    src/stm32f4xx_hal_rng.c
    src/stm32f4xx_hal_rtc.c
    src/stm32f4xx_hal_rtc_ex.c
    src/stm32f4xx_hal_sai.c
    src/stm32f4xx_hal_sai_ex.c
    src/stm32f4xx_hal_sd.c
    src/stm32f4xx_ll_sdmmc.c
    src/stm32f4xx_hal_sdram.c
    src/stm32f4xx_hal_spi.c
    src/stm32f4xx_hal_tim.c
    src/stm32f4xx_hal_tim_ex.c
    src/stm32f4xx_hal_uart.c
    src/stm32f4xx_hal_usart.c
    src/stm32f4xx_hal_irda.c
    src/stm32f4xx_hal_smartcard.c
    src/stm32f4xx_hal_wwdg.c
''')



path = ['inc',
    'CMSIS/Device/ST/STM32F4xx/Include',
    'CMSIS/Include']

obj = env.Object(src, depend = [''], CPPPATH = path)

Return("obj")